<html><head></head><body><div align="center">

<table border="0" cellpadding="0" cellspacing="0" width="500">
<tbody><tr>
<td valign="top">


<table border="0" cellpadding="0" cellspacing="0" width="500">
<tbody><tr>
	<td valign="top">
	  <a href="http://www.latedeals.ie"><img src="http://newsletters.latedeals.ie/2012_01_25/images/logo.gif" alt="LateDeals.ie" width="221" height="54" border="0" style="display:block"></a> </td>
	<td valign="top">
	<img src="http://newsletters.latedeals.ie/2012_01_25/images/pixel_trans.gif" style="display:block">	</td>
	<td valign="top" align="right"><img src="http://newsletters.latedeals.ie/2012_01_25/images/title_newsletter.gif" alt="Newsletter" width="101" height="30" style="display:inline"><br>
	  <strong><span style="font-family:Verdana, Arial, Helvetica, sans-serif; font-size:11px;color:#B6BBC7"><?= date('F jS Y') ?></span></strong></td>
</tr>
<tr>
<td><img src="http://newsletters.latedeals.ie/2012_01_25/images/pixel_trans.gif" width="250" height="6" style="display:block"></td>
<td><img src="http://newsletters.latedeals.ie/2012_01_25/images/pixel_trans.gif" width="100" height="6" style="display:block"></td>
<td><img src="http://newsletters.latedeals.ie/2012_01_25/images/pixel_trans.gif" width="150" height="6" style="display:block"></td>
</tr>
<tr>
<td colspan="3">

<strong><a href="http://www.latedeals.ie" style="font-family:Verdana, Arial, Helvetica, sans-serif; font-size:12px; color:#FF6600">LateDeals.ie</a> <span style="font-family:Verdana, Arial, Helvetica, sans-serif; font-size:12px;color:#B6BBC7">|</span> <a href="http://www.latedeals.ie/holidays/" style="font-family:Verdana, Arial, Helvetica, sans-serif; font-size:12px; color:#FF6600">Holidays</a> <span style="font-family:Verdana, Arial, Helvetica, sans-serif; font-size:12px;color:#B6BBC7">|</span> <a href="http://www.latedeals.ie/hotels/" style="font-family:Verdana, Arial, Helvetica, sans-serif; font-size:12px; color:#FF6600">Hotels</a> <span style="font-family:Verdana, Arial, Helvetica, sans-serif; font-size:12px;color:#B6BBC7">|</span> <a href="http://www.latedeals.ie/destination_guide/" style="font-family:Verdana, Arial, Helvetica, sans-serif; font-size:12px; color:#FF6600">Destination Guides</a></strong></td>
</tr>
<tr>
<td colspan="3"><img src="http://newsletters.latedeals.ie/2012_01_25/images/pixel_trans.gif" width="500" height="10" style="display:block"></td>
</tr>
</tbody></table></td>
</tr>
<tr>
<td valign="top"><a href="http://www.latedeals.ie"><img src="http://newsletters.latedeals.ie/2012_01_25/images/promo_panel_1.gif" alt="Deal-icious" width="500" height="85" border="0" style="display:block"><img src="http://newsletters.latedeals.ie/2012_01_25/images/promo_panel_2.gif" alt="Last Deals from &euro;268" width="500" height="59" border="0" style="display:block"></a></td>
</tr>
<tr>
<td valign="top"><img src="http://newsletters.latedeals.ie/2012_01_25/images/pixel_blue.gif" height="6" width="500" style="display:block"></td>
</tr>
<tr>
<td valign="top"><img src="http://newsletters.latedeals.ie/2012_01_25/images/mailer_base_cap.gif" width="500" height="8" style="display:block"></td>
</tr>
<tr>
<td valign="top" background="http://newsletters.latedeals.ie/2012_01_25/images/mailer_bg.gif">



<table border="0" cellpadding="0" cellspacing="0" width="500">

	<tbody><tr>
		<td valign="top"><img src="http://newsletters.latedeals.ie/2012_01_25/images/pixel_trans.gif" width="20" height="20" style="display:block"></td>
		<td valign="top">
		
		<p style="margin: 0 0 15px 0;color:#FA8411; font-size: 18px; font-weight: bold; font-family:Arial, Helvetica, sans-serif">Holiday Deals</p>
		
		
	
	
	
	
		
		
		
        <!-- START OFFERS -->	
		
		
		
		
		
		
		
		
		
<table border="0" cellpadding="0" cellspacing="0">














<tbody><?

require_once  $_SERVER['DOCUMENT_ROOT']."/../_lib/base/common.php";
require_once SITE_ROOT_PATH."/_lib/classes/class.holidays.php";
require_once SITE_ROOT_PATH."/_lib/classes/class.tree.php";
require_once SITE_ROOT_PATH."/_lib/classes/class.holiday_references.php";
require_once SITE_ROOT_PATH."/_lib/classes/class.hotels.php";
require_once SITE_ROOT_PATH."/_lib/classes/class.airports.php";
require_once SITE_ROOT_PATH."/_lib/classes/class.destinations.php";
require_once SITE_ROOT_PATH."/_lib/classes/class.exchange_rates.php";
require_once SITE_ROOT_PATH."/_lib/classes/class.lurls.php";
require_once SITE_ROOT_PATH."/_lib/classes/class.tree.php";
require_once SITE_ROOT_PATH."/_lib/classes/class.holiday_filters.php";
require_once SITE_ROOT_PATH."/_lib/classes/class.holiday_special_offers.php";





$uri_string  = $_GET['refs'];
$refs = explode(",", $uri_string);

	$specials = new holiday_special_offers();
	$lurls = new lurls();
	$holidays = new holidays();
	$destinations = new destinations();
	$airports = new airports();
	$tree = new tree();
	$hotels = new hotels();


if(is_array($refs)){

$holiday_references = new holiday_references();
$holiday_filters = new holiday_filters();



foreach($refs as $ref){
	
	
	// Get offer
	$holiday_values = $holiday_references->get_holiday($ref);
	unset($params);
	
	// Check if its a special offer
	$sparams['reference_id'] = $ref;
	$special_values = $specials->get_special($sparams);
	unset($sparams);
	
	
	if(!empty($special_values[0]['hotel_tree_id'])){
		$holiday_values['tree_id'] = $special_values[0]['hotel_tree_id'];
		$special_offer = true;
	}
	
	// Set the hotel name and resort to capital case
	$holiday_values['hotel_name'] = ucwords(strtolower($holiday_values['hotel_name']));
	$holiday_values['resort'] = ucwords(strtolower($holiday_values['resort']));
	
	// Get hotel 
	$lookup = $hotels->lookup_hotel($holiday_values);
	unset($params);	
	
	// Set values
	$hotel_values = $lookup['hotel_values'];
	$resort_values = $lookup['resort_values'];
	$destination_values = $lookup['destination_values'];

	// get photo url
	$lead_hotel_thumb_url = $tree->photo_url($hotel_values['main_photo']);
	
	// Departure airport lookup
	$params['airport_code'] = $holiday_values['departure_airport'];
	$departure_airport_values = $airports->get_airport($params);
	unset($params);
	

	
	// PRICE DISPLAY 
	
	// If special then use the hotel ID
	if(!empty($special_values['hotel_tree_id'])){
	
		// Get the adult display price
		$display_price_adult = $holiday_values['price_adult'];

	}else{
	
		// See if the price has been filtered
		$mod_price = $holiday_filters->find_holiday_mod_price($holiday_reference_id);
		if($mod_price){
			$base_price_inc_mod = $mod_price[0]['mod_price'];
		}else{
			$base_price_inc_mod = $holiday_values['price_adult']; 
		}
	
		// Get the adult display price
		$params['price'] = $base_price_inc_mod;
		$params['departure_airport'] = $holiday_values['departure_airport'];
		$params['tour_op'] = $holiday_values['tour_op'];
		$display_price = $holidays->display_price($params); 
		unset($params);
	
	}

	
	// Get LURL
	$params['reference_id'] = $ref;
	$offer_lurl = $lurls->get_holiday_lurl($params);
	unset($params);
	
	// Link titles
	$link_title = "Special offer holiday to ".$destination_values['name'];
	
	$departure_date = display_sabs_date($holiday_values['departure_date'],'jS F');
	
?>







<tr>
<td valign="top"><a href="<?= $offer_lurl ?>"><img src="<?= $lead_hotel_thumb_url ?>" width="108" height="80" border="0" style="display:block"></a></td>
<td valign="top"><img src="http://newsletters.latedeals.ie/2012_01_25/images/pixel_trans.gif" width="20" height="20" style="display:block"></td>
<td valign="top"><p style="margin: 0; line-height:130%; font-family:Verdana, Arial, Helvetica, sans-serif"><strong><span style="font-size:18px;color:#FA8411"><?= $destination_values['name'].", ".$resort_values['name'] ?></span><br>
<strong><span style="font-size:12px;"><?= $hotel_values['name'] ?>, <?= $holidays->board_basis($holiday_values['board_basis']); ?><br>
</span></strong></strong><span style="font-size:12px;"><?= $holiday_values['nights'] ?> nights, <?= $departure_date ?>, from <?= $departure_airport_values['simple'] ?></span><strong><br>
<strong><span style="font-size:18px;"><a href="<?= $offer_lurl ?>">&euro;<?= $display_price ?></a></span></strong></strong></p></td>
</tr>
<tr>
<td><img src="http://newsletters.latedeals.ie/2012_01_25/images/hr_bg.gif" width="108" height="21" style="display:block"></td>
<td><img src="http://newsletters.latedeals.ie/2012_01_25/images/hr_bg.gif" width="20" height="21" style="display:block"></td>
<td><img src="http://newsletters.latedeals.ie/2012_01_25/images/hr_bg.gif" width="332" height="21" style="display:block"></td>
</tr>







<?

unset($current_specials, $hotel_values,$resort_values,$destination_values,$departure_airport_values, $offer_lurl,$display_price);

}

} 

?>




</tbody></table>
		





<p style="margin: 0 0 5px 0;  font-size:18px; font-family:Verdana, Arial, Helvetica, sans-serif"><strong><a href="http://www.latedeals.ie">&rsaquo; View more Holiday Deals</a></strong></p>



<p style="margin: 0 0 15px 0; line-height:130%; font-size:11px; font-family:Verdana, Arial, Helvetica, sans-serif; color:#999999">* Subject to availability. Final pricing will be confirmed at time of booking as supplements may apply.</p></td>
		<td valign="top"><img src="http://newsletters.latedeals.ie/2012_01_25/images/pixel_trans.gif" width="20" height="20" style="display:block"></td>
	</tr>
</tbody></table></td>
</tr>
<tr>
<td valign="top"><img src="http://newsletters.latedeals.ie/2012_01_25/images/mailer_base_shoe.gif" width="500" height="8" style="display:block"></td>
</tr>

<tr>
<td valign="top" bgcolor="#0066CC"></td>
</tr>


<tr>
<td valign="top"><img src="http://newsletters.latedeals.ie/2012_01_25/images/pixel_blue.gif" height="6" width="500" style="display:block" /></td>
</tr>
<tr>
<td valign="top"><a href="http://www.facebook.com/latedeals"><img src="http://newsletters.latedeals.ie/2012_01_25/images/foot_panel_1.gif" alt="Love Last Minute Deals?" width="500" height="41" border="0" style="display:block" /><img src="http://newsletters.latedeals.ie/2012_01_25/images/foot_panel_2.gif" alt="Then you'll like our Facebook Page" width="500" height="37" border="0" style="display:block" /></a></td>
</tr>


<tr>
<td valign="top"><img src="http://newsletters.latedeals.ie/2012_01_25/images/mailer_shoe.gif" width="500" height="11" style="display:block"></td>
</tr>

<tr>
<td valign="top"><img src="http://newsletters.latedeals.ie/2012_01_25/images/pixel_trans.gif" height="10" width="500" style="display:block"></td>
</tr>
<tr>
<td valign="top">


<p align="center" style="margin: 0 0 15px 0; line-height:130%; font-size:10px; font-family:Verdana, Arial, Helvetica, sans-serif; color:#999999">If you no longer wish to receive emails from LateDeals.ie you can <a style="color:#999999" href="http://www.latedeals.ie/newsletter.php?action=unsub">unsubscribe here</a></p></td>
</tr>
</tbody></table>


</div>

</body></html>